#pragma once
#include "resource.h"
#include "ToyotaPJ.h"
#include "defs.h"


int CmdCheckSupport(int a1, int *a2, _DWORD *a3, EcuSt **ExCeptEcuInfo, tt_Token *token);
unsigned int SendCmdAndSaveA8Info(int a1, unsigned __int16 *a2, unsigned __int8 *a3, tt_Token *token);
int GetFuncCommFrameInfo(int CompareVal, int CompareVal2, EcuSt **ExCeptEcuInfo, tt_Token *token);
int GetCommFrameInfo(int a1, EcuSt **ExCeptEcuInfo, tt_Token *token);

int GetCmdDataInfo(int a1, EcuSt **ExCeptEcuInfo, tt_Token *token, unsigned char *Buf_1, unsigned char *Buf_2);
int InitSetEnterFrame(tt_Token *a1);
int SystemExitPart(tt_Token *token);

int P5_SendCmdGetReceive(unsigned __int8 *RecvBuf, int MaxSize, tt_Token *token, const void *a4, size_t Len);
int GetCanOneToOneCommBuff(unsigned __int8 *CombooCmdBuf, int toolID, int Val8E0, unsigned __int8 *Buff, int Len, tt_Token *token);
int SendCmdAndGetReceive(unsigned __int8 *RecvBuf, int MaxRecvByte, tt_Token *token, unsigned __int8 *CmdBuf, int Len2, int CMdVal2, int a7);
int GetIsoRecData(_BYTE *pRecv, unsigned __int8 *pReceiveBuffer, int CmdLen);
int IsoSendDataToEcuGetAnswer(unsigned char ucSendDataTimes, unsigned char *pReceiveBuffer, int iLengthReceiveBuffer, int iFrameNumber, ...);
int GetKwpRecData(unsigned __int8 *RecvBuf, unsigned __int8 *ReceiveBuffer, int a3, int a4);
int MulFindReceiveData(unsigned __int8 *RecvBuf, int MaxRecvByte, char a3, unsigned __int8 *CmdBuf, size_t Len, char CmdVal);
int SendCmdAndGetReceive_SF(unsigned __int8 *Recvuf, int a2, tt_Token *token, unsigned __int8 *CmdBuf, unsigned int Mode, int CmdMode, int ConstVal1, int ConstVal2);
int MultSetLinkKeepFunc(tt_Token *token, unsigned __int8 *SYsEnterCmd, unsigned int CmdLen, int a4);